package com.teen9g.infoplatformserver.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.teen9g.entity.Posts;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@org.apache.ibatis.annotations.Mapper
public interface PostsMapper extends BaseMapper<Posts> {

    /**
     * 查询所有帖子
     *
     * @return
     */
    @Select("select * from posts")
    List<Posts> getAllPosts();
}
